package atage9;

import java.util.ArrayList;
import java.util.List;

public class check2 {
    public static void main(String[] args) {
        List<Integer> days = new ArrayList<>();
        int count = 0;
        for (int i=1;(i*i+i)/2<=62;i++){
            days.add((i*i+i)/2);
        }
        for (int i= 0; i<days.size();i++){
            if(days.get(i)>31){
                count++;
                System.out.print("8月份的日期"+(days.get(i)-31)+" ");
            }else {
                count++;
                System.out.print("7月份的日期"+days.get(i)+" ");
            }
        }
        System.out.print("总的停电天数"+count);
    }
}


